﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using wsn.ap;

namespace wsn.atos
{
    class AtosComponent:IComponent
    {
        private static CheckOut check = new CheckOut();
        private static SensorSerialize serialize = new SensorSerialize();

        public AccessPointData execute(int[] data)
        {
            check.ParityBit(data);
            AccessPointData newData = serialize.execute(data);
            return newData;
        }
    }
}
